package com.ruge.sms.controller;

import com.ruge.sms.domain.request.ChannelRequest;
import com.ruge.sms.service.ChannelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ruge.wu
 * @since 2021/12/14 17:06
 */
@Slf4j
@RestController
@Api(tags = "【内部 接口】", value = "【内部 接口】")
@RequestMapping(value = "internal/channel")
public class ChannelController {
    @Resource
    private ChannelService channelService;

    @PostMapping("save")
    @ApiOperation(value = "【通道】  保存")
    public Object save(@RequestBody ChannelRequest request) {
        channelService.save(request);
        return "成功";
    }
}
